package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Csgoorder implements Serializable {
    private Integer oid;

    private Integer sid;

    private Integer bid;

    private Date ostart;

    private Date oend;

    private static final long serialVersionUID = 1L;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Date getOstart() {
        return ostart;
    }

    public void setOstart(Date ostart) {
        this.ostart = ostart;
    }

    public Date getOend() {
        return oend;
    }

    public void setOend(Date oend) {
        this.oend = oend;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Csgoorder other = (Csgoorder) that;
        return (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getBid() == null ? other.getBid() == null : this.getBid().equals(other.getBid()))
            && (this.getOstart() == null ? other.getOstart() == null : this.getOstart().equals(other.getOstart()))
            && (this.getOend() == null ? other.getOend() == null : this.getOend().equals(other.getOend()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getBid() == null) ? 0 : getBid().hashCode());
        result = prime * result + ((getOstart() == null) ? 0 : getOstart().hashCode());
        result = prime * result + ((getOend() == null) ? 0 : getOend().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", oid=").append(oid);
        sb.append(", sid=").append(sid);
        sb.append(", bid=").append(bid);
        sb.append(", ostart=").append(ostart);
        sb.append(", oend=").append(oend);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}